﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UNDP_Projects
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ProjectButton_Click(object sender, EventArgs e)
        {
            if (User.IsInRole("Project"))
            {
                Response.Redirect("~/Home.aspx");
            }
            else
            {
                return;
            }
        }

        protected void ProgrammeButton_Click(object sender, EventArgs e)
        {

            if (User.IsInRole("Programme"))
            {
                Response.Redirect("~/Home.aspx");
            }
            else
            {
                return;
            }
        }

        protected void COButton_Click(object sender, EventArgs e)
        {
            if (User.IsInRole("Administrator"))
            {
                Response.Redirect("~/Home.aspx");
            }
            else
            {
                return;
            }
        }

        protected void LOAButton_Click(object sender, EventArgs e)
        {

        }
    }
}